package org.patto.main.api.impl;

import org.patto.common.core.api.BaseApiService;
import org.patto.common.core.api.BaseResponse;
import org.patto.main.api.MainService;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author songchuanfu
 * @ClassName MainServiceImpl
 * @qq 18050164315
 * @addres 1802284273@qq.com
 * @微信: wx-suagcf
 */
@RestController
public class MainServiceImpl extends BaseApiService implements MainService {

    @Override
    public String main() {
        return "ok";
    }

    @Override
    public BaseResponse<String> main2() {
        return setResultSuccessData("mayikt");
    }

    @Override
    public BaseResponse<String> main3(int age) {
        int j = 1 / age;
        return setResultSuccessData(j);
    }
}
